<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>所有用户信息显示页面</title>

</head>
<body>
	<!--  下面是jsp(bootstrap效果)页面效果 -->
	<!--用的jsp的include指令获取inc.jsp。里边是bootstrap的框架 -->
	<%@include file="../../bootstrap/inc/inc.jsp"%>

	<div>
		<h5>所有用户信息</h5>
		<table class="table table-bordered table-hover"
			style="text-align: center;">
			<tbody>
				<tr class="success">
					<td>#</td>
					<td>用户名</td>
					<td>性别</td>
					<td>年龄</td>
					<td>电话</td>
					<td>地址</td>
					<td>身份</td>
					<td>修改</td>
					<td>删除</td>
				</tr>

				<c:forEach items="${sessionScope.lst}" var="eachuser"
					varStatus="statu">
					<tr>
						<td>${statu.index+1}</td>
						<td>${eachuser.username}</td>
						<td>${eachuser.usersex}</td>
						<td>${eachuser.userage}</td>
						<td>${eachuser.usertel}</td>
						<td>${eachuser.useraddress}</td>
						<td>${eachuser.useraddress}</td>
						<td><a href="ModifyUserInfo?uid=${eachuser.userid}&opt=0">修改</a></td>
						<td><a href="ModifyUserInfo?uid=${eachuser.userid}&opt=1"
							onclick="return confirm('确认要删除用户${eachuser.username}的信息记录吗？');">删除</a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>